package cn.mxlshy.springcloud.controller;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 马晓亮
 * @date: 2020/8/12 16:46
 * @description:
 */
@RestController
@RefreshScope
public class configClientController {
    @Value("${configInfo}")
    private String configInfo;

    @GetMapping("/configInfo")
    public String getConfigInfo() {
        return configInfo;
    }
}
